package ace.module.product.api.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import jakarta.validation.constraints.*;
import jakarta.annotation.Nullable;
import java.io.Serializable;

/**
* 商品基础资料 data transform object.
*
* @author Caspar
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = PmsProductDto.TABLE_DESC)
public class PmsProductDto implements Serializable {

  public static final String TABLE_NAME = "pms_product";
  public static final String TABLE_DESC = "商品基础资料";
  public static final String ID_COLUMN_NAME = "id";
  public static final String ID_TITLE = "id";
  public static final String ID_DESC = "";
  public static final String PMS_APP_ID_COLUMN_NAME = "pms_app_id";
  public static final String PMS_APP_ID_TITLE = "商品应用id";
  public static final String PMS_APP_ID_DESC = "";
  public static final String SHOP_ID_COLUMN_NAME = "shop_id";
  public static final String SHOP_ID_TITLE = "店铺id";
  public static final String SHOP_ID_DESC = "0=null";
  public static final String BRAND_ID_COLUMN_NAME = "brand_id";
  public static final String BRAND_ID_TITLE = "品牌id";
  public static final String BRAND_ID_DESC = "0=null";
  public static final String FREIGHT_TEMPLATE_ID_COLUMN_NAME = "freight_template_id";
  public static final String FREIGHT_TEMPLATE_ID_TITLE = "运费模板id";
  public static final String FREIGHT_TEMPLATE_ID_DESC = "0=null";
  public static final String SALE_STATUS_COLUMN_NAME = "sale_status";
  public static final String SALE_STATUS_TITLE = "上架状态";
  public static final String SALE_STATUS_DESC = " 1-上架 2-下架";
  public static final String SN_COLUMN_NAME = "sn";
  public static final String SN_TITLE = "商品编号";
  public static final String SN_DESC = "";
  public static final String NAME_COLUMN_NAME = "name";
  public static final String NAME_TITLE = "商品名称";
  public static final String NAME_DESC = "";
  public static final String KEYWORDS_COLUMN_NAME = "keywords";
  public static final String KEYWORDS_TITLE = "搜索关键词";
  public static final String KEYWORDS_DESC = "";
  public static final String SEARCH_WEIGHT_COLUMN_NAME = "search_weight";
  public static final String SEARCH_WEIGHT_TITLE = "搜索权重";
  public static final String SEARCH_WEIGHT_DESC = "";
  public static final String AUDIT_STATUS_COLUMN_NAME = "audit_status";
  public static final String AUDIT_STATUS_TITLE = "审核状态";
  public static final String AUDIT_STATUS_DESC = " 1-草稿 2-审核中 99-审核失败 100-审核成功";
  public static final String AUDIT_REMARK_COLUMN_NAME = "audit_remark";
  public static final String AUDIT_REMARK_TITLE = "审核备注";
  public static final String AUDIT_REMARK_DESC = "";
  public static final String OFF_SALE_REMARK_COLUMN_NAME = "off_sale_remark";
  public static final String OFF_SALE_REMARK_TITLE = "下架原因";
  public static final String OFF_SALE_REMARK_DESC = "";
  public static final String DELETE_FLAG_COLUMN_NAME = "delete_flag";
  public static final String DELETE_FLAG_TITLE = "删除标识";
  public static final String DELETE_FLAG_DESC = "0-未删除";
  public static final String CREATE_TIME_COLUMN_NAME = "create_time";
  public static final String CREATE_TIME_TITLE = "创建时间";
  public static final String CREATE_TIME_DESC = "单位-毫秒";
  public static final String UPDATE_TIME_COLUMN_NAME = "update_time";
  public static final String UPDATE_TIME_TITLE = "更新时间";
  public static final String UPDATE_TIME_DESC = "单位-毫秒";
  public static final String ROW_VERSION_COLUMN_NAME = "row_version";
  public static final String ROW_VERSION_TITLE = "版本号和乐观锁";
  public static final String ROW_VERSION_DESC = "";

  @Schema(title = ID_TITLE, description = ID_DESC)
  private Long id;

  @Schema(title = PMS_APP_ID_TITLE, description = PMS_APP_ID_DESC)
  private Long pmsAppId;

  @Schema(title = SHOP_ID_TITLE, description = SHOP_ID_DESC)
  private Long shopId;

  @Schema(title = BRAND_ID_TITLE, description = BRAND_ID_DESC)
  private Long brandId;

  @Schema(title = FREIGHT_TEMPLATE_ID_TITLE, description = FREIGHT_TEMPLATE_ID_DESC)
  private Long freightTemplateId;

  @Schema(title = SALE_STATUS_TITLE, description = SALE_STATUS_DESC)
  private Integer saleStatus;

  @Size(max = 255)
  @Schema(title = SN_TITLE, description = SN_DESC)
  private String sn;

  @Size(max = 255)
  @Schema(title = NAME_TITLE, description = NAME_DESC)
  private String name;

  @Size(max = 255)
  @Schema(title = KEYWORDS_TITLE, description = KEYWORDS_DESC)
  private String keywords;

  @Schema(title = SEARCH_WEIGHT_TITLE, description = SEARCH_WEIGHT_DESC)
  private Long searchWeight;

  @Schema(title = AUDIT_STATUS_TITLE, description = AUDIT_STATUS_DESC)
  private Integer auditStatus;

  @Schema(title = AUDIT_REMARK_TITLE, description = AUDIT_REMARK_DESC)
  private String auditRemark;

  @Schema(title = OFF_SALE_REMARK_TITLE, description = OFF_SALE_REMARK_DESC)
  private String offSaleRemark;

  @Schema(title = DELETE_FLAG_TITLE, description = DELETE_FLAG_DESC)
  private Long deleteFlag;

  @Schema(title = CREATE_TIME_TITLE, description = CREATE_TIME_DESC)
  private Long createTime;

  @Schema(title = UPDATE_TIME_TITLE, description = UPDATE_TIME_DESC)
  private Long updateTime;

  @Schema(title = ROW_VERSION_TITLE, description = ROW_VERSION_DESC)
  private Long rowVersion;

}